<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>edit</title>
    <link rel="stylesheet" href="/css/bootstrap.css">
</head>
<body class="container">
<br>
<h1>Edit  <small>Please fill in the information for the change</small></h1>
<br>
<form action="/doedit" method="post"  class="form-horizontal">
    <fieldset disabled>
        <div class="form-group has-success has-feedback">
            <label for="id" class="col-sm-1 control-label">ID</label>
            <div class="col-sm-5">
                <input type="text" th:value="${user.id}"  placeholder="Disabled input" class="form-control" id="id" aria-describedby="inputSuccess2Status">
                <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
                <span id="inputSuccess2Status" class="sr-only">(success)</span>
            </div>
        </div>
    </fieldset>
    <input type="text" name="id" th:value="${user.id}" style="display:none">
    <div class="form-group">
        <label for="userName" class="col-sm-1 control-label">Name</label>
        <div class="col-sm-5">
            <input id="userName" class="form-control" type="text" th:value="${user.userName}" name="userName">
        </div>
    </div>
    <div class="form-group">
        <label for="passWord" class="col-sm-1 control-label">passWord</label>
        <div class="col-sm-5">
            <input type="text" id="password" class="form-control" th:value="${user.passWord}" name="passWord">
        </div>
    </div>
    <div class="form-group">
        <label for="realName" class="col-sm-1 control-label">Role</label>
        <div class="col-sm-5">
            <input id="realName" class="form-control" type="text" th:value="${user.realName}" name="realName">
        </div>
    </div>
    <input type="submit" class="btn btn-info" value="OK">
    &nbsp;&nbsp;&nbsp;
    <a class="btn btn-info" th:href="${'/edit/'+user.id}">Reset</a>
    &nbsp;&nbsp;&nbsp;
    <a class="btn btn-success" href="/">Index</a>
</form>
</body>
</html>